package com.lcf.feign.service.system;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 描述：satoken feign
 *
 * @author lcf
 * @since 2025/3/4 20:09
 */
@FeignClient(name = "${system-service-name}", contextId = "satoken", url ="${system-service-url}", path = "feign/satoken")
public interface SysSaTokenFeignService {
    /**
     * 返回此 loginId 拥有的权限列表
     */
    @GetMapping("getPermissionList")
    List<String> getPermissionList(@RequestParam Object loginId, @RequestParam long tenantId);

    /**
     * 返回此 loginId 拥有的角色列表
     */
    @GetMapping("getRoleList")
    List<String> getRoleList(@RequestParam Object loginId, @RequestParam long tenantId);
}
